<?php

	session_start();
	include 'info.php';
	require 'functions.inc';
	require 'php/simplepie.inc';

?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>OpenCV Manager</title>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<!-- add your meta tags here -->

<style type="text/css">

textarea.summary {
	line-height: 18px;
}

</style>


<link rel="shortcut icon" href="<?php echo $_GLOBALS['site_url']; ?>img/favicon.ico" />
<link href="<?php echo $_GLOBALS['site_url']; ?>css/my_layout.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 7]>
<link href="css/patches/patch_my_layout.css" rel="stylesheet" type="text/css" />
<![endif]-->
<link rel="stylesheet" href="reset.css" type="text/css" media="screen" />

	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery-1.2.6.pack.js" type="text/javascript" ></script>
	
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery-ui-personalized-1.6b.min.js" type="text/javascript"></script>
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/i18n/ui.datepicker-fr.js" type="text/javascript" ></script>
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/project.js" type="text/javascript"></script>
	
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery.jeditable.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery.jeditable.autogrow.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery.autogrow.js" type="text/javascript" charset="utf-8"></script>

	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery.forms.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery.highlightFade.js" type="text/javascript" charset="utf-8"></script>
	
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/wforms.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery.jmap.js" type="text/javascript" charset="utf-8"></script>
	<script src="<?php echo $_GLOBALS['site_url']; ?>js/jquery.passmeter.js" type="text/javascript" charset="utf-8"></script>
	
<link rel="stylesheet" href="<?php echo $_GLOBALS['site_url']; ?>css/opencv.css" type="text/css" media="screen" />


</head>
<body onload="initialize()">
<div id="light" class="white_content"><div class="paddingr10"><div id="login-page"><?php

	include 'session.php';

?>
<a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='none';document.getElementById('fade').style.display='none'">Hide me</a>
</div></div></div><div id="fade" class="black_overlay">

	  </div>

<div id="masthead-wrapper">
	<div id="masthead">
		<div id="logo">
			<a href="#asdf"><img src="<?php echo $_GLOBALS['site_url']; ?>img/logo.png" alt="Open CV Project" /></a>
		</div>
	</div>
</div>
<div id="wrapper">
    
	<div id="globalnav">
		<h3><?php echo $_GLOBALS['site_name'].', '.$_GLOBALS['site_phrase']; ?></h3>
		
	</div>

<!-- Originally had these items as a ul but ran into float problems with items 
	floating to left of div rather than right side of screen -->
	<div id="user">
		<p>
		<?php

			if ( isset($_SESSION['auth'] ))
			{
				echo "Enregistr&eacute; en tant que <strong>".$_SESSION['logname']."</strong> | <a href=\"./profil.php\" title=\"Mon espace\">Mon espace</a> | <a href=\"./logout.php\" >Se d&eacute;connecter</a>";
			}
			else {
			?>
		<a href = "javascript:void(0)" onclick = "document.getElementById('light').style.display='block';document.getElementById('fade').style.display='block'">Login</a>
			 | <a href="<?php echo $_GLOBALS['site_url']; ?>register.php">Register</a><?php }?>

	</div>
</div>

  <div id="page_margins">
	<div id="page">

<script type="text/javascript">
    //<![CDATA[
$(document).ready(function(){
   
		$('div.demo-show:eq(0)> div').hide(); 
		$('div.demo-show:eq(0)> h3').click(function() {
			$(this).next().slideToggle('fast');
		});
		var alert_error = $('.alert_error2').html();
		if( alert_error == "" ) $('.alert_error2').hide();
		
		if( $('.msgsend').html() == "" ) $('.msgsend').hide();
		
		$("#toolbox").hide();  
	$("#toolbox-tab a").click(function(){
		$("#toolbox").slideToggle("slow")
	}).toggle(
		function(){
			$("#theArrow").attr("src","img/arrow-up.gif")
		},
		function(){
			$("#theArrow").attr("src","img/arrow-down.gif")
		}
	);
	
});

    //]]>
</script>

<?php

			include 'toolbox.php';

		?>